package xin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import xin.common.utils.SpringUtil;

@SpringBootApplication
@EnableAutoConfiguration
@ComponentScan
@ServletComponentScan
@EnableTransactionManagement(proxyTargetClass = true)
@Import(value={SpringUtil.class})
@EnableCaching //启用缓存
public class XinApplication {
	public static void main(String[] args) {
		SpringApplication.run(XinApplication.class, args);
	}
}
